package fractal;
import java.util.Random;

public class Pseudoalea implements Randomiseur
{
	public Random r = new Random();

	public Pseudoalea(String pString)
	{
		int seed = 0;
		char[] tab = pString.toCharArray();
		for (int i = 0; i < tab.length; i++)
		{
			seed += (int)tab[i] + Math.pow(10, i);
		}
		r.setSeed(seed);
	}

	public double random() {

		return r.nextDouble();
	}
}
